VT-d/qinval: make local variable used for communication with IOMMU "volatile"
authorJan Beulich <jbeulich@suse.com>
Fri, 20 Jun 2014 08:25:33 +0000 (10:25 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 20 Jun 2014 08:25:33 +0000 (10:25 +0200)
commitceec46c02074e1b2ade0b13c3c4a2f3942ae698c
tree4213bed83625b6a379222e9402250fe3a0e52bbd
parentfbf92a840c065c4fb2193c64e521d37f98cf363a
VT-d/qinval: make local variable used for communication with IOMMU "volatile"

Without that there is - afaict - nothing preventing the compiler from
putting the variable into a register for the duration of the wait loop.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Yang Zhang <yang.z.zhang@intel.com>
xen/drivers/passthrough/vtd/qinval.c